package com.trkj.dao.jpa;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.trkj.pojos.LmbAllotApplyDetalied;

public interface LmbAllotApplyDetaliedDAO extends CrudRepository<LmbAllotApplyDetalied, String> {
	@Query("select max(c.aDetaliedId) from LmbAllotApplyDetalied c where c.aDetaliedId like ?1%")
    public String findMaxID(String a);
	@Query("select c from LmbAllotApplyDetalied c where c.aAllotId = ?1 order by c.aDetaliedId asc")
	public List<LmbAllotApplyDetalied> findDetaliedByApplyId(String id);
}
